+Wed Nov 15 21:56:28 2000 Owen Taylor <otaylor@redhat.com>
+
+ * src/pixbuf-*: A few updates for GTypePlugin.
+
Tue Jul 18 12:13:19 2000 Owen Taylor <otaylor@redhat.com>
Updates to work with GTK+-2.0 theme engine architecture.
pixbuf-style.h \
pixbuf.h
-libpixmap_la_LDFLAGS = -module -avoid-version
-libpixmap_la_LIBADD = -lgdk_pixbuf
+libpixmap_la_LDFLAGS = -avoid-version -module
GType pixbuf_type_style = 0;
void
-pixbuf_style_register_type (GtkThemeEngine *engine)
+pixbuf_style_register_type (GTypeModule *module)
{
static const GTypeInfo object_info =
{
(GInstanceInitFunc) pixbuf_style_init,
};
- pixbuf_type_style = gtk_theme_engine_register_type (engine,
- GTK_TYPE_STYLE,
- "PixbufStyle",
- &object_info);
+ pixbuf_type_style = g_type_module_register_type (module,
+ GTK_TYPE_STYLE,
+ "PixbufStyle",
+ &object_info, 0);
}
static void
#include <gmodule.h>
G_MODULE_EXPORT void
-theme_init(GtkThemeEngine * engine)
+theme_init (GTypeModule *module)
{
- pixbuf_rc_style_register_type (engine);
- pixbuf_style_register_type (engine);
+ pixbuf_rc_style_register_type (module);
+ pixbuf_style_register_type (module);
}
G_MODULE_EXPORT void
-theme_exit(void)
+theme_exit (void)
{
}
GType pixbuf_type_rc_style = 0;
void
-pixbuf_rc_style_register_type (GtkThemeEngine *engine)
+pixbuf_rc_style_register_type (GTypeModule *module)
{
static const GTypeInfo object_info =
{
(GInstanceInitFunc) pixbuf_rc_style_init,
};
- pixbuf_type_rc_style = gtk_theme_engine_register_type (engine,
- GTK_TYPE_RC_STYLE,
- "PixbufRcStyle",
- &object_info);
+ pixbuf_type_rc_style = g_type_module_register_type (module,
+ GTK_TYPE_RC_STYLE,
+ "PixbufRcStyle",
+ &object_info, 0);
}
static void
GtkRcStyleClass parent_class;
};
-void pixbuf_rc_style_register_type (GtkThemeEngine *engine);
+void pixbuf_rc_style_register_type (GTypeModule *module);
GdkPixbuf *
pixbuf_cache_value_new (gchar *filename)
{
- GdkPixbuf *result = gdk_pixbuf_new_from_file (filename);
+ GError *err = NULL;
+
+ GdkPixbuf *result = gdk_pixbuf_new_from_file (filename, &err);
if (!result)
- g_warning("Pixbuf theme: Cannot load pixmap file %s\n", filename);
+ {
+ g_warning ("Pixbuf theme: Cannot load pixmap file %s: %s\n",
+ filename, err->message);
+ g_error_free (err);
+ }
return result;
}
GtkStyleClass parent_class;
};
-void pixbuf_style_register_type (GtkThemeEngine *engine);
+void pixbuf_style_register_type (GTypeModule *module);